import java.util.Scanner;
public class Temperature{
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int C; 
        int F = s.nextInt();
        C = (F - 32)*5/9;
        System.out.println("转换成的摄氏温度是"+C+"°");
        s.close();
    }
}